FROM maven:3.5-jdk-8-alpine as builder

# build the jar
WORKDIR /app
COPY pom.xml .
COPY src ./src

# build the jar
RUN mvn package -DskipTests

CDM ["java", "-jar", "/app/target/MySite-0.0.1-SNAPSHOT.jar"]